#pragma once
# include<Arduino.h>
# include "../ganix/ch423.hpp"

void init_chip(uint8_t ch423_sda = D4, uint8_t ch423_scl = D3) {
    CH423_Init(ch423_sda, ch423_scl);
    delayMicroseconds(10);
    
    int chip_id = CH423_ReadByte();
    Serial.printf("chip id is %x\n", chip_id);
}